package android.team.app.ui;

import android.content.Intent;
import android.os.Bundle;
import android.team.app.R;
import android.team.app.ui.missatoll.Personal_Info_Activity;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;

public class FirstActivity extends BaseActivity {

	private LinearLayout lnMyAccount;
	private LinearLayout lnOpenewAccount;
	private LinearLayout lnMissAToll;
	private LinearLayout lnTollLocationAndRates;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.first_activity);

		loadUI();
		
		setHeader();					
		
		loadSpecialUI();
		

	}

	private void loadSpecialUI() {
		//Khởi tạo các linear layout
				lnMyAccount = (LinearLayout) findViewById(R.id.lnMyAccount);
				lnMyAccount.setOnClickListener(this);
				lnOpenewAccount = (LinearLayout) findViewById(R.id.lnOpenNewAccount);
				lnOpenewAccount.setOnClickListener(this);
				lnMissAToll = (LinearLayout) findViewById(R.id.lnMissAToll);
				lnMissAToll.setOnClickListener(this);
				lnTollLocationAndRates = (LinearLayout) findViewById(R.id.lnLocationAndRates);
				lnTollLocationAndRates.setOnClickListener(this);
		
	}

	private void setHeader() {

		// cho ẩn hiện title
		tvHeader.setVisibility(View.INVISIBLE);

		// Coh aanr icon home
		btHome.setVisibility(View.INVISIBLE);
		btHome.setEnabled(false);

	}

	@Override
	public void onClick(View v) {
		super.onClick(v);

		switch (v.getId()) {
		case R.id.lnMyAccount:

			break;
		case R.id.lnOpenNewAccount:

			break;
		case R.id.lnMissAToll:
			startActivity(new Intent(FirstActivity.this, Personal_Info_Activity.class));
			break;
		case R.id.lnLocationAndRates:

			break;

		default:
			break;
		}

	}

}
